/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tuitionmanagement.entity;

import java.sql.Date;


/**
 *
 * @author XUAN
 */
public class Fee {
    private int feeLevelId;
    private int paidTime;
    private float moneyTotal;
    private Date dateStart;
    private Date dateEnd;
    private String lastError;

    public Fee(){
        feeLevelId =0;
        paidTime = 0;
        moneyTotal = 0;
        dateStart = null;
        dateEnd = null;
    }

    public Fee(int _feeLevelId,int _paidTime,float _moneyTotal, Date _dateStart, Date _dateEnd){
        this.feeLevelId = _feeLevelId;
        this.paidTime = _paidTime;
        this.moneyTotal = _moneyTotal;
        this.dateStart = _dateStart;
        this.dateEnd = _dateEnd;
    }

    public boolean validate() {
        return true;
    }

    /**
     * @return the feeLevelId
     */
    public int getFeeLevelId() {
        return feeLevelId;
    }

    /**
     * @param feeLevelId the feeLevelId to set
     */
    public void setFeeLevelId(int feeLevelId) {
        this.feeLevelId = feeLevelId;
    }

    /**
     * @return the paidTime
     */
    public int getPaidTime() {
        return paidTime;
    }

    /**
     * @param paidTime the paidTime to set
     */
    public void setPaidTime(int paidTime) {
        this.paidTime = paidTime;
    }

    /**
     * @return the moneyTotal
     */
    public float getMoneyTotal() {
        return moneyTotal;
    }

    /**
     * @param moneyTotal the moneyTotal to set
     */
    public void setMoneyTotal(float moneyTotal) {
        this.moneyTotal = moneyTotal;
    }

    /**
     * @return the dateStart
     */
    public Date getDateStart() {
        return dateStart;
    }

    /**
     * @param dateStart the dateStart to set
     */
    public void setDateStart(Date dateStart) {
        this.dateStart = dateStart;
    }

    /**
     * @return the dateEnd
     */
    public Date getDateEnd() {
        return dateEnd;
    }

    /**
     * @param dateEnd the dateEnd to set
     */
    public void setDateEnd(Date dateEnd) {
        this.dateEnd = dateEnd;
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }
    public String toString(){
        return String.valueOf(this.paidTime);
    }
}
   